package com.yuandian.management.utils;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.yuandian.management.vo.ExcelStepVo;

import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * 只读sheet监听器
 * <p>
 *
 * @author lijunhang
 * @date 2021/9/15
 * @since 1.0.0
 */

public class StepExcelReadListener extends AnalysisEventListener<ExcelStepVo> {



    private List<ExcelStepVo> list=new ArrayList<>();

    @Override
    public void invoke(ExcelStepVo stepVo, AnalysisContext analysisContext) {
        list.add(stepVo);

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<ExcelStepVo> getList() {
        return list;
    }
}
